//
//  UIFont+Extension.m
//  DATABK
//
//  Created by 俞渊华 on 2017/6/13.
//  Copyright © 2017年 俞渊华. All rights reserved.
//

#import "UIFont+Extension.h"

@implementation UIFont (Extension)

+(UIFont *)xm_matchFont:(CGFloat)size{
    if ([UIScreen mainScreen].bounds.size.width == 320) {
        return [UIFont xm_font:size * 0.8];
    }
    return [UIFont xm_font:size];
}
+(UIFont *)xm_font:(CGFloat)size{
    return [UIFont systemFontOfSize:size];
}
+(UIFont *)xm_boldFont:(CGFloat)size{
    return [UIFont boldSystemFontOfSize:size];
}

+(UIFont *)xm_fontNormal{
    return [self xm_font:16.f];
}
+(UIFont *)xm_iconFont:(CGFloat)size{
    return [UIFont fontWithName:@"iconfont" size:size];
}
+(UIFont *)xm_medium:(CGFloat)size{
    return [UIFont fontWithName:@"PingFangSC-Medium"size:size];
}


@end
